package server.business.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.web.bind.annotation.RequestBody;
import server.business.pojo.BloodSample;
import com.baomidou.mybatisplus.extension.service.IService;
import server.business.vo.Result;
import server.business.vo.ResultExpand;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
* @author Galaxy
* @description 针对表【blood_sample】的数据库操作Service
* @createDate 2022-11-08 12:46:24
*/
public interface BloodSampleService extends IService<BloodSample> {
    IPage<BloodSample> selectByPage(int currentPage, int limit);

    List<BloodSample> queryData();

    Result deleteById(Integer id);

    ResultExpand getPage(HttpServletRequest request, HttpServletResponse response);

    ResultExpand searchSample(HttpServletRequest request, HttpServletResponse response);

    Result addBloodSample(@RequestBody BloodSample sampleData);

    Result receiveSample(@RequestBody BloodSample sampleData);

    Result outSample(@RequestBody BloodSample sampleData);

    Result discardSample(@RequestBody BloodSample sampleData);

    void downloadExcel(HttpServletRequest request, HttpServletResponse response);
}
